/**
 * Created by zhangjing on 2018/3/9.
 */
const Controller=require('egg').Controller;

class NesController extends  Controller{
    async list(){
        const ctx = this.ctx;
        const page = ctx.query.page || 1;
        const newsList = await ctx.service.news.list(page);
        await ctx.render('news/list.tpl', { list: newsList });
    }
}
module.exports=NesController;